HTTP: Fix ded6170bd2072971f72db794f3ab1625a8e13475, which broke all HTTP calls.
authorAaron <aschulz@wikimedia.org>
Tue, 8 May 2012 22:18:10 +0000 (15:18 -0700)
committerTimo Tijhof <ttijhof@wikimedia.org>
Wed, 9 May 2012 06:35:14 +0000 (08:35 +0200)
commite4f0c1f57b16ebc15cda6fd810e55f03f58b71da
tree546feffde952942c869cde1e02b0d6853f6785a2
parentd5b1fb6492dd8d057d7c105f7ca8c9f082c1af1d
HTTP: Fix ded6170bd2072971f72db794f3ab1625a8e13475, which broke all HTTP calls.

* respHeaders contains arrays for each header (should've been
  respHeaders['content-length'][0] instead of respHeaders['content-length'])
  using getResponseHeader() instead.
* This also fixes InstantCommons, which was broken by this (bug 36653).
* Also cleaned up a bit of w/s in foreign repo code while in the area.

Change-Id: I429b0a36618cc2b873077516e9c1023dc5b7d693
includes/HttpFunctions.php
includes/filerepo/ForeignAPIRepo.php
includes/filerepo/file/ForeignAPIFile.php